package com.woniuxy02;

/**
 * @author 作者
 * @create 2025-07-22 14:28
 */
public class StudentTest01 {
    public static void main(String[] args) {
        Student s1 = new Student();
        s1.name="zs";
        s1.age=18;
//        s1.schoolName="蜗牛";
        Student.schoolName="蜗牛";
        System.out.println(s1.showInfo());
        Student s2 = new Student();
        s2.name="ls";
        s2.age=17;
//        s2.schoolName="woniu";
        Student.schoolName="woniu";
        System.out.println(s2.showInfo());
        System.out.println(s1.name);
        System.out.println(s2.name);
        System.out.println(Student.schoolName);
        System.out.println(Student.schoolName);
    }
}
